# 指定镜像源
FROM openjdk:8-jdk-alpine

# 维护者
MAINTAINER zmlmagic <zmlmagic@163.com>

# 信息
LABEL Name="Base Eureka"
LABEL Description="This image is the spring-boot images."
LABEL Version="0.0.1"

# 打包
ARG JAR_FILE
ADD ${JAR_FILE} app.jar
RUN apk --no-cache add tzdata  && \
    ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    echo "Asia/Shanghai" > /etc/timezone

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]